<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:87:"E:\phpStudy\WWW\xsh_kanban\public/../application/index\view\index\transaction_data.html";i:1529561981;s:67:"E:\phpStudy\WWW\xsh_kanban\application\index\view\common\index.html";i:1529485338;}*/ ?>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>xsh</title>
    <link rel="shortcut icon" href="../../static/common/img/favicon.ico"/>
    <!-- Tell the browser to be responsive to screen width -->
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
    <link rel="stylesheet" href="../../static/common/css/bootstrap.min.css">
    <!-- Font Awesome -->
    <link rel="stylesheet" href="../../static/common/css/font-awesome.min.css">
    <!-- Ionicons -->
    <link rel="stylesheet" href="../../static/common/css/ionicons.min.css">
    <!-- Theme style -->
    <link rel="stylesheet" href="../../static/common/css/AdminLTE.min.css">
    <!-- AdminLTE Skins. We have chosen the skin-blue for this starter
          page. However, you can choose any other skin. Make sure you
          apply the skin class to the body tag so the changes take effect. -->
    <link rel="stylesheet" href="../../static/common/css/skin-blue.min.css">

    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
    <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
    <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->

    <!-- Google Font -->
    <link rel="stylesheet"
          href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700,300italic,400italic,600italic">
    <style>
        .abc{box-shadow:0 0 15px #bbb ;}
        /*canvas{box-shadow:0 0 10px #000 inset;}*/
    </style>
    
<style>
    /*修改bootstrap表格边框颜色*/
    .table-bordered th,
    .table-bordered td {
        border: 1px solid #bbb !important;
        text-align:center;
        font-size:16px;
    }
</style>
<link rel="stylesheet" href="../../static/common/css/bootstrap-datepicker.css">


</head>
<!--
BODY TAG OPTIONS:
=================
Apply one or more of the following classes to get the
desired effect
|---------------------------------------------------------|
| SKINS         | skin-blue                               |
|               | skin-black                              |
|               | skin-purple                             |
|               | skin-yellow                             |
|               | skin-red                                |
|               | skin-green                              |
|---------------------------------------------------------|
|LAYOUT OPTIONS | fixed                                   |
|               | layout-boxed                            |
|               | layout-top-nav                          |
|               | sidebar-collapse                        |
|               | sidebar-mini                            |
|---------------------------------------------------------|
-->
<body class="hold-transition skin-blue sidebar-mini">
<div class="wrapper">

    <!-- Main Header -->
    <header class="main-header">

        <!-- Logo -->
        <a href="#" class="logo">
            <!-- mini logo for sidebar mini 50x50 pixels -->
            <span class="logo-mini"><b>XSH</b></span>
            <!-- logo for regular state and mobile devices -->
            <span class="logo-lg"><b>X</b>LIFE</span>
        </a>

        <!-- Header Navbar -->
        <nav class="navbar navbar-static-top" role="navigation">
            <!-- Sidebar toggle button-->
            <a href="#" class="sidebar-toggle" data-toggle="push-menu" role="button">
                <span class="sr-only">Toggle navigation</span>
            </a>
            <!-- Navbar Right Menu -->
            <div class="navbar-custom-menu">
                <ul class="nav navbar-nav">

                    <!-- User Account Menu -->
                    <li class="dropdown user user-menu">
                        <!-- Menu Toggle Button -->
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                            <!-- The user image in the navbar-->
                            <img src="../../static/common/img/logo.png" class="user-image" alt="User Image">
                            <!-- hidden-xs hides the username on small devices so only the image appears. -->
                            <span class="hidden-xs"><?php echo $_SESSION['think']['user']['user_name']; ?></span>
                        </a>
                        <ul class="dropdown-menu">
                            <!-- The user image in the menu -->
                            <li class="user-header">
                                <img src="../../static/common/img/logo.png" class="img-circle" alt="User Image">

                                <p>
                                    致力成为顶尖数据服务企业
                                    <small>-- 炫生活 --</small>
                                </p>
                            </li>
                            <!-- Menu Body -->
                            <li class="user-body">
                                <!--<div class="row">-->
                                    <!--<div class="col-xs-4 text-center">-->
                                        <!--<a href="#">Followers</a>-->
                                    <!--</div>-->
                                    <!--<div class="col-xs-4 text-center">-->
                                        <!--<a href="#">Sales</a>-->
                                    <!--</div>-->
                                    <!--<div class="col-xs-4 text-center">-->
                                        <!--<a href="#">Friends</a>-->
                                    <!--</div>-->
                                <!--</div>-->
                                <!-- /.row -->
                            </li>
                            <!-- Menu Footer-->
                            <li class="user-footer">
                                <!--<div class="pull-left">-->
                                    <!--<a href="#" class="btn btn-default btn-flat">Profile</a>-->
                                <!--</div>-->
                                <div class="pull-right">
                                    <a href="<?php echo url('index/login/out_login'); ?>" class="btn btn-default btn-flat">登 出</a>
                                </div>
                            </li>
                        </ul>
                    </li>

                </ul>
            </div>
        </nav>
    </header>
    <!-- Left side column. contains the logo and sidebar -->
    <aside class="main-sidebar">

        <!-- sidebar: style can be found in sidebar.less -->
        <section class="sidebar">

            <!-- Sidebar user panel (optional) -->
            <div class="user-panel">
                <div class="pull-left image">
                    <img src="../../static/common/img/logo.png" class="img-circle" alt="User Image">
                </div>
                <div class="pull-left info">
                    <p><?php echo $_SESSION['think']['user']['user_name']; ?></p>
                    <!-- Status -->
                    <a href="#"><i class="fa fa-circle text-success"></i> 在线</a>
                </div>
            </div>

            <!-- search form (Optional) -->
            <!--<form action="#" method="get" class="sidebar-form">-->
                <!--<div class="input-group">-->
                    <!--<input type="text" name="q" class="form-control" placeholder="搜索菜单">-->
                    <!--<span class="input-group-btn">-->
              <!--<button type="submit" name="search" id="search-btn" class="btn btn-flat"><i class="fa fa-search"></i>-->
              <!--</button>-->
            <!--</span>-->
                <!--</div>-->
            <!--</form>-->
            <!-- /.search form -->

            <!-- Sidebar Menu -->
            <ul class="sidebar-menu" data-widget="tree">
                <li class="header">导航</li>
                <!-- Optionally, you can add icons to the links -->
                <!--<li class="active"><a href="#"><i class="fa fa-link"></i> <span>Link</span></a></li>-->
                <!--<li><a href="#"><i class="fa fa-link"></i> <span>Another Link</span></a></li>-->
                <li class="treeview active">
                    <a href="#">
                        <i class="fa fa-chrome"></i> <span>炫生活服务平台</span>
                        <span class="pull-right-container">
                          <i class="fa fa-angle-left pull-right"></i>
                        </span>
                    </a>
                    <ul class="treeview-menu">
                        <li><a href="<?php echo url('index/index/index'); ?>"><i class="fa fa-bar-chart"></i> 数据概览 </a></li>
                        <li><a href="<?php echo url('index/index/real_time'); ?>"><i class="fa fa-fighter-jet"></i> 实时数据 </a></li>
                        <?php if($_SESSION['think']['user']['username'] == 'xuanlife1'): ?>
                        <li><a href="<?php echo url('index/index/member_data'); ?>"><i class="fa fa-cubes"></i> 会员管理 </a></li>
                        <li><a href="<?php echo url('index/index/transaction_data'); ?>"><i class="fa fa-database"></i> 交易数据 </a></li>
                        <li><a href="<?php echo url('index/index/record_login'); ?>"><i class="fa fa-file-pdf-o"></i> 登录脚印 </a></li>
                        <?php endif; ?>
                    </ul>
                </li>
            </ul>
            <!-- /.sidebar-menu -->
        </section>
        <!-- /.sidebar -->
    </aside>

    <!-- Content Wrapper. Contains page content -->
    <div class="content-wrapper">
        
<section class="content-header">
    <h1>
        <a href="<?php echo url('index/index/full_transaction_data'); ?>" target="_blank">交易数据</a>
        <small>transaction data</small>
    </h1>
    <div style="margin-top: 10px;">
        <form action="<?php echo url('index/index/transaction_data'); ?>" method="get">
            &nbsp;&nbsp;日期&nbsp;<input type="text" name="date" value="<?php echo $month1; ?>" class="form_datetime" id="search_begindate" style="height:30px;border-radius: 6px;border:1px solid #ccc;text-align:center;" readonly>
            <input type="submit" style="height:30px;width:50px;background:#169BD5;color:#fff;border:0;border-radius: 6px;text-align:center;" value="搜索">
        </form>
    </div>
</section>
<section class="content container-fluid">
    <table class="table table-hover table-bordered">
        <tr>
            <td class="col-md-3">会员用户</td>
            <td class="col-md-3">订单商家</td>
            <td class="col-md-2">订单金额</td>
            <td class="col-md-2">下单时间</td>
            <td class="col-md-2">付款时间</td>
        </tr>
        <?php if(is_array($res) || $res instanceof \think\Collection || $res instanceof \think\Paginator): $i = 0; $__LIST__ = $res;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$val): $mod = ($i % 2 );++$i;?>
        <tr>
            <td><?php echo $val['user']; ?></td>
            <td>
                <?php
					echo '****'.str_replace(mb_substr($val['store_name'],0,2,'utf-8'),'',$val['store_name']);
				?>
            </td>
            <td><?php echo $val['order_price']; ?></td>
            <td><?php echo $val['order_time']; ?></td>
            <td><?php echo $val['pay_time']; ?></td>
        </tr>
        <?php endforeach; endif; else: echo "" ;endif; ?>
    </table>
    <div>
        <span style="float:left;margin-top:20px;font-size: 16px;">
            本月总计交易金额：<?php echo $this_month_order_price; ?> 元
            <div style="color: blue;">
                累计交易金额：<?php echo $all_order_price; ?> 元
            </div>
        </span>
        <span style="float:right;">
            <?php echo $page; ?>
        </span>
    </div>
</section>

    </div>
    <!-- /.content-wrapper -->

    <!-- Main Footer -->
    <footer class="main-footer" style="text-align:center;">
        <!-- To the right -->
        <div class="pull-right hidden-xs">
            <!-- Anything you want -->
        </div>
        <!-- Default to the left -->
        <strong style="letter-spacing:2px;">致力成为顶尖数据服务企业<a href="http://www.xuanlife.com.cn" target="_blank">&nbsp;&nbsp;&nbsp;--炫生活</a></strong>
    </footer>


</div>
<!-- ./wrapper -->

<!-- REQUIRED JS SCRIPTS -->

<!-- jQuery 3 -->
<script src="../../static/common/js/jquery.min.js"></script>
<!-- Bootstrap 3.3.7 -->
<script src="../../static/common/js/bootstrap.min.js"></script>
<!-- AdminLTE App -->
<script src="../../static/common/js/adminlte.min.js"></script>
<!-- Slimscroll -->
<script src="../../static/common/js/jquery.slimscroll.min.js"></script>
<!-- FastClick -->
<script src="../../static/common/js/fastclick.js"></script>


<!--<script src="../../static/common/js/jquery.min.js"></script>-->
<script src="../../static/common/js/bootstrap-datepicker.js"></script>
<script src="../../static/common/js/bootstrap-datepicker.zh-CN.js"></script>
<script type="text/javascript">
    $('.form_datetime').datepicker({
        format: 'yyyy-mm',
        autoclose: true,
        todayBtn: true,
        startView: 'year',
        minView:'year',
        maxView:'decade',
        language:  'zh-CN',
    });
</script>


</body>
</html>